import request from '@/utils/request'
/**
 * 登录接口
 * @param {*} loginForm
 * @returns
 */
export const loginApi = (loginForm) => {
  return request({
    url: '/sys/login',
    method: 'POST',
    data: loginForm

  })
}
/**
 * 获取用户信息的接口
 * @returns
 */
export const getUserProfileApi = () => {
  return request({
    url: '/sys/profile',
    method: 'POST'
  })
}
/**
 * 获取用户头像
 * @param {*} id 用户id
 * @returns
 */
export const getUserStaffPhotoApi = (id) => {
  return request({
    url: `/sys/user/${id}`,
    method: 'GET'
  })
}

